package cn.edu.njtc.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("tb_hospital")
@Schema(description = "医院实体")
public class Hospital implements Serializable {

    @TableId(value = "hospital_id", type = IdType.AUTO) // 自增
    @Schema(description = "医院ID")
    private Integer hospitalId;

    @TableField("hospital_name")
    @Schema(description = "医院名称")
    private String hospitalName;

    @TableField("hospital_address")
    @Schema(description = "医院地址")
    private String hospitalAddress;

    @TableField("hospital_phone")
    @Schema(description = "医院电话")
    private String hospitalPhone;

    @TableField("created")
    @Schema(description = "创建时间")
    private LocalDateTime created;

    @TableField("updated")
    @Schema(description = "修改时间")
    private LocalDateTime updated;

    @TableField("deleted")
    @Schema(description = "逻辑删除标记")
    private Boolean deleted;
}